package com.liangzhong.model.compete.vo
{
	import com.liangzhong.model.AppData;
	
	import flash.utils.ByteArray;

	/**
	 *国内比赛结果  
	 * @author Administrator
	 * 
	 */	
	public class CompeteMatchResultVo
	{
		public function CompeteMatchResultVo()
		{
		}
		/**
		 *主队名称  
		 */
		public var homeName:String;
		/**
		 *主队进球数 
		 */
		public var hgold:int;
		/**
		 *主队ID 
		 */
		public var hId:int;
		/**
		 *客队名称  
		 */
		public var guname:String;
		/**
		 *客队进球数 
		 */
		public var ggold:int;
		/**
		 *客队ID 
		 */
		public var gId:int;
		
		//客队主本国人
		public function analysis(buffer:ByteArray):void
		{
			var len:int = buffer.readShort();
			homeName = buffer.readUTFBytes(len);
			hgold = buffer.readByte();
			len = buffer.readShort();
			guname = buffer.readUTFBytes(len);
			ggold = buffer.readByte();
			gId = AppData.getInstance().clubDatamanager.clubInfo.country;
			hId = AppData.getInstance().competeDataManager.competeInfoVo.rivalcountry;
		}
//		public function 
	}
}